package com.cx.meta.dto;

import com.cx.meta.enums.UserLogType;

import java.util.Date;

/**
 * @author flysand
 * 用户信息变更日志
 */
public class CxUserLog {
    private String id;

    private String userId;

    private String roleId;

    private UserLogType logType;

    private String log;

    private Date createTime;

    public CxUserLog(){

    }

    public CxUserLog(String id, String userId, String roleId, UserLogType logType, String log, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.roleId = roleId;
        this.logType = logType;
        this.log = log;
        this.createTime = createTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId == null ? null : roleId.trim();
    }

    public UserLogType getLogType() {
        return logType;
    }

    public void setLogType(UserLogType logType) {
        this.logType = logType;
    }

    public String getLog() {
        return log;
    }

    public void setLog(String log) {
        this.log = log == null ? null : log.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}